package View;

/**
 *
 * @author Martin LEGRIS
 */
import Model.Contact;
import javax.swing.*;
import java.awt.*;

import View.Window;
import java.util.ArrayList;


public class MainInterface {

    /**
     * Create the GUI and show it. For thread safety, this method should be
     * invoked from the event-dispatching thread.
     */
    private static void createAndShowGUI(ArrayList<Contact> myContacts) {
        Window fenetre= new Window(myContacts);
        
        
    }


    public static void run(ArrayList<Contact> myContacts) {
        //Schedule a job for the event-dispatching thread:
        //creating and showing this application's GUI.
        createAndShowGUI(myContacts);
        /*javax.swing.SwingUtilities.invokeLater(new Runnable() {
            public void run(ArrayList<Contact> myContacts) {
                createAndShowGUI(myContacts);
            }
        });*/
    }
}
